#ifndef _RAY_INTERSECTIONS_H
#define	_RAY_INTERSECTIONS_H

#include "point.h"
#include "polygon.h"

enum ray_state 
{
    INTERSECTS,
    NOT_INTERSECTS,
    BEGINS_ON_SEGMENT
};


bool belongs(point_t const & ray_start, polygon_t const & polygon);
ray_state intersects_segment(point_t const & ray_start, point_t const & begin, point_t const & end);

#endif	/* _RAY_H */

